/**
 * #[User.java] 	version:1.0	15-12-2013
 */
package cl.cesarg.agenda.model.business;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import cl.cesarg.agenda.model.dao.UserDao;
import cl.cesarg.agenda.model.entities.UserEntity;

/**
 * @author 	Cesar Gonzalez		cesar@cesarg.cl		http://twitter.com/donpandix
 * @version	1.0 15-12-2013
 *
 */
@Component
public class UserBusiness implements IUserBusiness {

	
	@Autowired
	private UserDao _userDao;
	
	/* (non-Javadoc)
	 * @see cl.cesarg.agenda.model.business.IUser#startUpApplication()
	 */
	@Override
	public void startUpApplication() {
		
		UserEntity userEntity = new UserEntity();
		
		userEntity.setEmail("cesar@cesarg.cl");
		userEntity.setName("Cesar");
		userEntity.setSuName("Gonzalez");
		userEntity.setUserName("donpandix");
		userEntity.setPassword("ab1019");
		
		_userDao.startUpApplication( userEntity );

	}

}
